<?php
namespace Admin\Controller;
use Think\Controller;
class SysController extends CommonController {
    public function usercount(){

    	// echo strtotime("-1 days");
    	$time = time();

    	$sql = "select FROM_UNIXTIME(create_time,'%Y-%m-%d') date,count(*) cn from user GROUP BY date";

    	$data = M()->query($sql);


    	var_dump($data);exit;

    	$num ="[5, 20, 76, 10, 10, 20]";
    	$date = '["08-01","08-02","08-03","08-04","08-05","08-06"]';

    	$this->assign('num',$num);
    	$this->assign('date',$date);
        $this->display();
    }
}


